<template>
    <h1>{{ title }}</h1>
    <div class="html" v-html="article"></div>
</template>

<script lang="ts" setup>
    const title = ref("");
    const article = ref("");
    onMounted(() => {
        const obj = JSON.parse(sessionStorage.getItem("show-art") || "{}");
        title.value = obj.title;
        article.value = obj.article;
    });
</script>

<style scoped lang="scss"></style>
